#ifndef _META_DATA_SVR_COMMON_H_
#define _META_DATA_SVR_COMMON_H_

#define MDS_ERR_UNKNOWN_ERR -1
#define MDS_ERR_INVALID_ARGS -2
#define MDS_ERR_FILE_ALREADY_EXIST -3
#define MDS_ERR_OS_FILE_OP_ERR -4
#define MDS_ERR_FILE_NOT_EXIST -5
#define MDS_ERR_TARGET_NOT_A_FILE -6
#define MDS_ERR_OUTER_SERVICE_ERR -7

#define MDS_ERR_CLIENT_DETECTED_INVALID_ARGS -100
#define MDS_ERR_CLIENT_TO_SVR_NETWORK_ERR -101
#define MDS_ERR_INVALID_RESPONSE -102

#define MDS_CMD_CREATE_MD_FILE 1
#define MDS_CMD_DELETE_MD_FILE 2
#define MDS_CMD_DATA_SVR_NOTIFY_DATA_FILE_INFO 3
#define MDS_CMD_CLIENT_NOTIFY_CLIENT_DATA_INFO 4
#define MDS_CMD_GET_MD_FILE_INFO 5
#define MDS_CMD_ALLOC_DS_4_NEW_FILE 6

#endif
